package com.w3c.pragmatic.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 异常类型枚举
 *
 * @author wangdong
 * @since 2025/2/24 16:54
 */
@Getter
@AllArgsConstructor
public enum ErrorTypeEnum {
    // 针对自定义异常：com.w3c.pragmatic.common.exception.BusinessException
    BUSINESS_ERROR("100001", "业务处理错误"),
    // 三方异常(客户端@RequestParam参数必填)：javax.validation.MethodArgumentNotValidException
    METHOD_ARGUMENT_NOT_VALID_EXCEPTION("100002", "客户端请求缺少必填的参数"),
    // 全局兜底处理异常
    SYSTEM_UNKNOWN_ERROR("999999", "系统未知错误");

    private final String errCode;
    private final String errMsg;
}
